<template>
  <van-cell class="mycell " value="内容" is-link>
    <template #title>
      <div class="title">{{ title }}</div>
    </template>
    <template>
      <img class="photo" v-if="type === 'img' && value" :src="value" alt="" />
      <img
        class="photo"
        v-else-if="type === 'img' && !value"
        src="https://ss2.bdstatic.com/70cFvnSh_Q1YnxGkpoWK1HF6hhy/it/u=1441836571,2166773131&fm=26&gp=0.jpg"
        alt=""
      />
      <div v-else class="value">{{ value }}</div>
    </template>
  </van-cell>
</template>
<script>
export default {
  props: ['title', 'value', 'type']
}
</script>
<style lang="less" scoped>
.mycell {
  .title {
    font-family: MicrosoftYaHei;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 18px;
    letter-spacing: 1px;
    color: #333333;
  }
  .photo {
    width: 22px;
    height: 22px;
    border-radius: 50%;
  }
  .value {
    font-family: MicrosoftYaHei;
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    line-height: 18px;
    letter-spacing: 1px;
    color: #999999;
  }
}
</style>
